<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id = "app">
        {{msg}}
   

    </div>

  

    <template id="login">
        <ul>
            <li>用户登录</li>
            <li><input type="text" name="usesrname" placeholder="请输入用户名"><br></li>
            <li> <input type="password" name="password" placeholder="请输入密码"></li>
            <li><button>登录</button></li></li>
        </ul>
        
    </template>
    <template id="reg">
        <ul>
            <li>用户注册</li>
            <li><input type="text" name="usesrname" placeholder="请输入用户名"><br></li>
            <li> <input type="password" name="password" placeholder="请输入密码"></li>
            <li> <input type="password" name="password" placeholder="再次输入"></li>
            <li><button>注册</button></li></li>
        </ul>
        
    </template>
   
   
    <script src="./node_modules/vue/dist/vue.js"></script>
    <script src="./node_modules/vue-router/dist/vue-router.js"></script>

    <script>

        const login = {
            template:"#login",
            data() {
                return {
                    shuai: 'christopher'
                };
            },
        }

        const reg = {
            template:"#reg",
            data() {
                return {
                    shuai: 'christopher'
                };
            },
        }

     
        const vm  = new Vue({
            el:"#app",
            data:{
                msg:"吃货联盟"
            }
           
        })



    </script>
</body>
</html>